package entityBean;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.Id;

import java.io.Serializable;
import java.util.ArrayList;

@SuppressWarnings("serial")
@Entity
@Table(name="operatore")
public class Operatore implements Serializable {
	
	@Id
	@Column(name="codiceop")
	private String codOp;
	
	@Column(name="nome")
	private String nome;
	
	@Column(name="cognome")
	private String cognome;
	
	@Column(name="password")
	private String password;
	
	//Liste delle BTP inserite da quell'operatore
	
	private ArrayList<Hotel> hotel;
	
	private ArrayList<Volo> voli;
	
	private ArrayList<Attrazione> att;

	
	public String getCodOp() {
		
		return codOp;
		
	}

	public void setCodOp(String codOp) {
		
		this.codOp = codOp;
		
	}

	public String getNome() {
		
		return nome;
		
	}

	public void setNome(String nome) {
		
		this.nome = nome;
		
	}

	public String getCognome() {
		
		return cognome;
		
	}

	public void setCognome(String cognome) {
		
		this.cognome = cognome;
		
	}

	public String getPassword() {
		
		return password;
		
	}

	public void setPassword(String password) {
		
		this.password = password;
		
	}
	
	public ArrayList<Hotel> getHotel() {
		
		return hotel;
		
	}

	public void setHotel(ArrayList<Hotel> hotel) {
		
		this.hotel = hotel;
		
	}

	public ArrayList<Volo> getVoli() {
		
		return voli;
		
	}

	public void setVoli(ArrayList<Volo> voli) {
		
		this.voli = voli;
		
	}

	public ArrayList<Attrazione> getAtt() {
		
		return att;
		
	}

	public void setAtt(ArrayList<Attrazione> att) {
		
		this.att = att;
		
	}
	
}
